/**
 * 风险监控路由
 */


import Main from '@/components/main'
import parentView from '@/components/parent-view'

const riskMonitorRouter = {
  path: '/risk-monitor',
  name: 'risk-monitor',
  component: Main,
  meta: {
    // hideInMenu: true,
    keepAlive: true,
    title: '风险监控',
    access: ['RiskWarn'],
    // notCache: false,
    icon: '_zhengcezhichi'
  },
  children: [
    {
      path: 'customer-contract',
      name: 'customer-contract',
      meta: {
        keepAlive: true,
        title: '客户合同监控',
        access: ['CustomerContract'],
      },
      component: () => import('@/view/risk-monitor/customer-contract/list.vue')
    },
    {
      path: 'staff-contract',
      name: 'staff-contract',
      meta: {
        keepAlive: true,
        title: '员工合同监控',
        access: ['EmployeeContract'],
      },
      component: () => import('@/view/risk-monitor/staff-contract/list.vue')
    },
    {
      path: 'staff-retire',
      name: 'staff-retire',
      meta: {
        keepAlive: true,
        title: '员工退休监控',
        access: ['EmployeeRetireContract'],
      },
      component: () => import('@/view/risk-monitor/staff-retire/list.vue')
    },
    {
      path: 'staff-not-contract',
      name: 'staff-not-contract',
      meta: {
        keepAlive: true,
        title: '员工未签合同监控',
        access: ['EmployeeNotContract'],
      },
      component: () => import('@/view/risk-monitor/staff-not-contract/list.vue')
    },
  ]
}

export default riskMonitorRouter;